package cn.wdm.basic.mapper;

import cn.wdm.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    
    void save(T t);
    void update(T t);
    void delete(Long id);
    List<T> loadAll();
    T loadById(Long id);
    Long queryCount(BaseQuery query);
    List<T> queryData(BaseQuery query);
    //批量删除
    void batchDelete(List<Long> ids);
}
